// 获取用户车辆列表
export const carLists = ()=>{
    return uni.$u.http.get(`/api/recharge/vehicle/list`)
}

// 设置默认车辆
export const defaultCar = (data)=>{
    return uni.$u.http.put(`/api/recharge/vehicle/setDefault`,data)
}



// 查询用户车辆 /api/recharge/vehicle/list get
export const getMyCarList = () => {
    return uni.$u.http.get(`/api/recharge/vehicle/list`)
}


export function getRechargeVehicle(params){
	return uni.$u.http.get("/api/recharge/vehicle/"+params,{custom: {auth: true}})
}






// 用户默认选中车辆
export function selected(){
	return uni.$u.http.get(`/api/recharge/vehicle/selected`)
}

// 查询车辆品牌信息
export function brandList(){
	return uni.$u.http.get('/api/recharge/brand/list')
}

//车辆远程控制
export function byVehicleId(id){
	return uni.$u.http.get('/api/recharge/status/byVehicleId/'+id)
}

export function rechargeStatus(data){
	return uni.$u.http.put('/api/recharge/status',data)
}

export function addVehicle(data){
	return uni.$u.http.post(`/api/recharge/vehicle`, data)
}

// 根据车辆ip查询车辆详细状态
export function carDetailId(id){
	return uni.$u.http.get(`/api/recharge/status/byVehicleId/`+id)
}
